package org.pp.admin.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SysMenuEdite {
    @TableId(value = "menu_id", type = IdType.AUTO)
    @NotNull(message = "菜单Id不为空")
    private Long menuId;

    @Schema(description = "名称")
    @NotBlank(message = "名称不为空")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "后端权限标识")
    private String api;

    @Schema(description = "前端路由/按钮")
    private String route;


    @Schema(description = "排序")
    private Integer sort;
}
